home *** CD-ROM | disk | FTP | other *** search
/ WINMX Assorted Textfiles / Ebooks.tar / Text - Tech - The Basics of Cryptography (TXT).rar / (ebook - txt) The Basics of Cryptography.txt
Text File  |  2003-06-02  |  8KB  |  164 lines

  1.                                                               The Basics of Cryptography
  2.                                                                            by tHe mAnIaC
  3.                                                     contact me at: dancho@mbox.digsys.bg
  4.                                                        maniac@forbidden.net-security.org
  5.                                                                               16.11.1999
  6. |=|=|=|=|=|=|=|A=|N=|A=|R=|C=|H=|Y=|=|R=|U=|L=|E=|S|=|=|=|=|=|=|=|=|=|
  7.  
  8. This guide is for educational purposes only I do not take any responsibility about anything
  9. happen after reading the guide. I'm only telling you how to do this not to do it. It's your decision.
  10. If you want to put this text on your Site/FTP/Newsgroup or anything else you can do it but don't
  11. change anything without the permission of the author.
  12. <--=--=--=--=--=--=--=--=>
  13. A word from the author:
  14.  
  15. I hope you like my texts and find them useful.
  16. If you have any problem or some suggestion feel free to e-mail me but please don't send mails like
  17. "I want to hack the US government please help me" or "Tell me how to bind a trojan into a .jpg"
  18. Be sure if I can help you with something I will do it.
  19. <--=--=--=--=--=--=--=--=>
  20.  
  21. Table of Contents
  22.  
  23. 1.What is this text about?
  24. 2.About Encryption and how it works
  25. 3.About the Cryptography and PGP
  26. 4.Ways of breaking the encryption
  27. -Bad pass phrases
  28. -Not deleted files
  29. -Viruses and trojans
  30. -Fake Version of PGP
  31. =--=--=--=--=--=--=--=--=
  32.  
  33.  
  34. 1.What is this text about?
  35. -=-=-=-=-=-=-=-=-=-=-=-=-=
  36. In this text I'll explain you everything about encryption,what is it,PGP,
  37. ways that someone can read your encrypted files etc.Every hacker or
  38. paranoid should use encryption and keep the other from reading their
  39. files.The encryption is very important thing and I'll explain you how can
  40. someone break and decrypt your files.
  41.  
  42. 2.About Encryption and how it works
  43. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  44. The Encryption is very old.Even Julius Caesar used it when he was 
  45. sending messages because he didn't trust to his messengers.You see
  46. encryption is everywhere,when you watch some spy film you see
  47. there's always a computer with encrypted files or some film about hackers
  48. when the feds busted the hacker and they see all of the hacker's files are
  49. encrypted.
  50.  
  51. When you have simple .txt file that you can read this is called "plain text".
  52. But when you use encryption and encrypt the file it will become unreadable
  53. by the time you don't enter the password.This text is called cipher text.
  54. The process of converting a cipher text into plain text is called decryption.
  55.  
  56. Here's a little example:
  57.  
  58. Plain text ==>Encryption==>Ciphertext==>Descryption==>Plaintext
  59.  
  60. This example shows you the way when you encrypt and decrypt a file.
  61.  
  62. 3.About the Cryptography and PGP
  63. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  64. Cryptography is science that use the mathematics to encrypt and decrypt data.This science 
  65. let you keep your files and documents safe even on insecure networks like the Internet.
  66. The cryptography can be weak and strong.The best is of course the strong one.Even when you
  67. use all the computers in the world and they're doing billion operations in second you'll just need
  68. BILLIONS of years to decrypt strong encryption.
  69.  
  70. PGP (Pretty Good Privacy) is maybe the best encryption program to encrypt your files and documents.
  71. It work in this way:
  72.  
  73. When you encrypt one file with PGP,PGP first compress the file.This saves you disk space and modem
  74. transmition.Then it creates a session key.This session key works with a very secure and fast
  75. confidential encryption algorithm to encrypt the file.Then the session key is encrypted with the
  76. recipient's public key.
  77. PGP ask you for pass phrase not for password.This is more secure against the dictionary attacks
  78. when someone tries to use all the words in a dictionary to get your password.When you use 
  79. pass phrase you can enter a whole phrase with upper and lowercase letters with numeric and
  80. punctuation characters.
  81.  
  82.  
  83. 4.Ways of breaking the encryption
  84. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  85. PGP has been written for people that want their files encrypted for people that want privacy.
  86. When you send an e-mail it can be read from other people if you use PGP only the person for who
  87. is the message will be able to read it.
  88.  
  89.  
  90. Now you know many things about PGP and the encryption but you may like to know can someone
  91. break it and read your private texts and files.In fact if you use all the computers in the world to 
  92. decrypt a simple PGP message they'll need 12 million times the age of the universe to break it.
  93. You see this is the BEST the encryption is so strong noone can break it.
  94. The people that program it has done their work now everything depends on you.
  95.  
  96. -Bad pass phrases
  97. *****************
  98.  
  99. The algorithm is unbreakable but they're other ways to decrypt the text and read it.
  100. One of the biggest mistakes when someone writes his/her pass phrase is that the pass phrase is
  101. something like : "John" "I love you" and such lame phrases.Other one are the name of some friend
  102. or something like that.This is not good because this is pass phrase not password make it longer
  103. put numbers and other characters in it.The longer your pass phrase is the harder it will be guessed
  104. but put whole sentences even one that doesn't make sense just think in this way:
  105. Someone is brute-forcing thousands of pass phrases from a dictionary therefore my pass phrase
  106. should be someone that is not there in the dictionary something very stupid like:
  107.  
  108. hEllowOrld33IjustwanTtoteLLtoev3ryon3thatI'maLamErandI'mahacKer666
  109.  
  110. This is easy to remember because it's funny and there are only a few numbers but you may not use
  111. upper and lowercase characters.I hope you know will put some very good pass phrase and be sure
  112. noone will know it.
  113.  
  114. Another mistake is that you may write the pass phase on a paper and if someone find it you'll loose
  115. it and he/she will be able to read your encrypted files.
  116.  
  117. -Not deleted files
  118. ******************
  119.  
  120. Another big security problem is how most of the operating systems delete files.So when you encrypt
  121. the file you delete the plain text and of course leave the encrypted one.
  122. But the system doesn't actually delete the file.It just mark those blocks of the disk deleted and free.
  123. Someone may run a disk recovery program and still see all the files but in plaintext.Even when you're
  124. writing your text file with a word editor it can create some temporary copies of it.When you close it
  125. these files are deleted but as I told you they're still somewhere on your computer.
  126. PGP has tool called PGP Secure Wipe that complete removes all deleted files from your computer
  127. by overwriting them.In this way you'll only have the encrypted files on your computer.
  128.  
  129. -Viruses and Trojans
  130. ********************
  131.  
  132. Another dangerous security problem are the viruses and the trojans.So when you infect with a
  133. trojan the attacker may run a key logger on your system.
  134.  
  135. *Note
  136. A key logger is a program that captures all keystrokes pressed by you then saves them on your
  137. hard drive or send them to the attacker
  138. ***************************************
  139. So after the attacker run it he/she will be able to see everything you have written on your computer
  140. and of course with your PGP pass phrase.
  141. There are also a viruses designed to do this.Simpy record your pass phrase and send it back to the
  142. attacker.
  143.  
  144. -Fake Version of PGP
  145. ********************
  146.  
  147. Another security problem is the PGP source that is
  148. available so someone can make a fake copy of it that is recording your pass phase and
  149. sending it back to the attacker.The program will look real and it will work but it may also have
  150. functions you even don't know about.
  151. A way of defending of these security problems is to use a trojan and a virus scanner.You should
  152. also be sure your computer is clean from viruses and trojans when you install PGP and also be sure
  153. you get PGP from Network Associates Inc. not from some other pages.
  154.  
  155. So now I hope you understand that PGP can't be braked but if you use it wisely and be sure
  156. your pass phrase is good one,you're not infected with viruses or trojans and you're using the
  157. real version of PGP you'll be secure.
  158.  
  159.  
  160.  
  161. tHe mAnIaC is a member of Black Sun Research Facility (BSRF).
  162. Get more BSRF tutorials at http://blacksun.box.sk.
  163.  
  164.